package com.scs.service.impl;

import com.scs.dao.identityMapper;
import com.scs.pojo.Identity;
import com.scs.service.IdentityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("IdentityService")
public class IdentityServiceImpl implements IdentityService {
    @Autowired
    private identityMapper ideMapper;

    @Override
    public int addIdentity(Identity identity) {
        return ideMapper.addIdentity(identity);
    }

    @Override
    public int deleteIdentity(Integer identityId) {
        return ideMapper.deleteIdentity(identityId);
    }

    @Override
    public int updateIdentity(String identity, String description, Integer identityId) {
        return ideMapper.updateIdentity(identity,description,identityId);
    }

    @Override
    public List<Identity> getAllIdentity() {
        return ideMapper.getAllIdentity();
    }
}
